package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumUpdateDto implements Serializable {

    @ApiModelProperty(value = "相册名称", required = true, example = "演示数据001")
    @NotNull(message = "修改相册失败，必须填写相册名称！")
    private String name;

    @ApiModelProperty(value = "相册简介", required = true, example = "演示数据的简介001")
    @NotNull(message = "修改相册失败，必须填写相册简介！")
    private String description;

    @ApiModelProperty(value = "排序序号", required = true, example = "99")
    @NotNull(message = "修改相册失败，必须填写排序序号！")
    @Range(max = 255, message = "修改相册失败，排序序号必须是 [0, 255] 区间的数值！")
    private Integer sort;

}
